.class public Lcom/barteo/emulator/EmulatorContext;
.super Ljava/lang/Object;
.source "EmulatorContext.java"

# interfaces
.implements Lorg/microemu/EmulatorContext;


# instance fields
.field private context:Lorg/microemu/EmulatorContext;


# direct methods
.method public constructor <init>(Lorg/microemu/EmulatorContext;)V
    .locals 0
    .parameter "context"

    .prologue
    .line 43
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 44
    iput-object p1, p0, Lcom/barteo/emulator/EmulatorContext;->context:Lorg/microemu/EmulatorContext;

    .line 45
    return-void
.end method


# virtual methods
.method public getDeviceDisplay()Lorg/microemu/device/DeviceDisplay;
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lcom/barteo/emulator/EmulatorContext;->context:Lorg/microemu/EmulatorContext;

    invoke-interface {v0}, Lorg/microemu/EmulatorContext;->getDeviceDisplay()Lorg/microemu/device/DeviceDisplay;

    move-result-object v0

    return-object v0
.end method

.method public getDeviceFontManager()Lorg/microemu/device/FontManager;
    .locals 1

    .prologue
    .line 52
    iget-object v0, p0, Lcom/barteo/emulator/EmulatorContext;->context:Lorg/microemu/EmulatorContext;

    invoke-interface {v0}, Lorg/microemu/EmulatorContext;->getDeviceFontManager()Lorg/microemu/device/FontManager;

    move-result-object v0

    return-object v0
.end method

.method public getDeviceInputMethod()Lorg/microemu/device/InputMethod;
    .locals 1

    .prologue
    .line 56
    iget-object v0, p0, Lcom/barteo/emulator/EmulatorContext;->context:Lorg/microemu/EmulatorContext;

    invoke-interface {v0}, Lorg/microemu/EmulatorContext;->getDeviceInputMethod()Lorg/microemu/device/InputMethod;

    move-result-object v0

    return-object v0
.end method

.method public getDisplayComponent()Lorg/microemu/DisplayComponent;
    .locals 1

    .prologue
    .line 60
    iget-object v0, p0, Lcom/barteo/emulator/EmulatorContext;->context:Lorg/microemu/EmulatorContext;

    invoke-interface {v0}, Lorg/microemu/EmulatorContext;->getDisplayComponent()Lorg/microemu/DisplayComponent;

    move-result-object v0

    return-object v0
.end method

.method public getResourceAsStream(Ljava/lang/String;)Ljava/io/InputStream;
    .locals 1
    .parameter "name"

    .prologue
    .line 64
    invoke-static {}, Lorg/microemu/MIDletBridge;->getCurrentMIDlet()Ljavax/microedition/midlet/MIDlet;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/Class;->getResourceAsStream(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v0

    return-object v0
.end method

.method public platformRequest(Ljava/lang/String;)Z
    .locals 2
    .parameter "URL"

    .prologue
    .line 68
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/barteo/emulator/EmulatorContext$1;

    invoke-direct {v1, p0, p1}, Lcom/barteo/emulator/EmulatorContext$1;-><init>(Lcom/barteo/emulator/EmulatorContext;Ljava/lang/String;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 74
    const/4 v0, 0x0

    return v0
.end method
